package org.zxp.designpattern.template;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-23 14:22
 **/
public class PolicyServerTJ extends AbstractPolicyServer {

    @Override
    public boolean sendToMisc() {
        if(super.sendToMisc()){
            System.out.println("天津特殊，与地税交互");
        }
        return true;
    }

    @Override
    public PolicyBean generateObject(String json) {
        System.out.println("组织天津车险出单服务");
        return new PolicyBean.PolicyBeanBuilder().appliName("1").build();
    }
}
